namespace Forging2
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class bas_equipment_zy
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public bas_equipment_zy()
        {
            bas_plcaddress_zy = new HashSet<bas_plcaddress_zy>();
            run_data_main = new HashSet<run_data_main>();
        }

        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        [Key]
        [StringLength(50)]
        public string GID { get; set; }

        [Required]
        [StringLength(50)]
        public string CODE { get; set; }

        [Required]
        [StringLength(50)]
        public string NAME { get; set; }

        public int USAGE_CATEGORY { get; set; }

        [Required]
        [StringLength(50)]
        public string USAGE_NAME { get; set; }

        public int GATHER_TYPE { get; set; }

        [StringLength(50)]
        public string MONITOR_PLCID { get; set; }

        [StringLength(50)]
        public string PRODUCE_PLCID { get; set; }

        public int PLC_SUPPORT { get; set; }

        [StringLength(50)]
        public string PLC_BTAND { get; set; }

        public int INTERVAL { get; set; }

        public int STATUS { get; set; }

        public int IS_DELETE { get; set; }

        [Column(TypeName = "datetime2")]
        public DateTime CRATE_DATE { get; set; }

        [Column(TypeName = "datetime2")]
        public DateTime MODIFY_DATE { get; set; }

        [StringLength(50)]
        public string WORK_CELL_CODE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<bas_plcaddress_zy> bas_plcaddress_zy { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<run_data_main> run_data_main { get; set; }
    }
}
